

<table>
<tr>
<th>Event Title</th>
<th>Sub Title</th>
<th>Start Date</th>
<th>End Date</th>
<th>Registration Price</th>
</tr>

<?php
foreach ($message as $item){
 ?><tr>
 <td><img src='<?php echo 'images/'.$item['E_picture'];?>' style='width:50px; vertical-align: middle' />
 <?php echo CHtml::link($item['E_title'], array("event/viewSingleEvent", 'event_id'=>$item['E_id'])); ?> </td><td>
 <?php
 echo(($item['E_subtitle'])."\n"); 
 ?></td><td>
 <?php
 echo(($item['E_startdate'])."\n"); 
 ?></td><td>
 <?php
 echo(($item['E_enddate'])."\n"); ?>
 </td><td>
  <?php
echo !empty($item['E_amount']) ? "$".number_format($item['E_amount'], 2, '.', ',') : "Free";?>
 </td></tr>
<?php
}
?>
</table>



